<template>
  <j-modal
    :title="title"
    :width="width"
    :visible="visible"
    switchFullscreen
    @cancel="handleCancel"
    @ok="handleOk"
    cancelText="关闭">
    <devices-record-list :queryParam="queryParam" ref="recordList"></devices-record-list>
  </j-modal>
</template>

<script>
import DevicesRecordList from './DevicesRecordList'
export default {
  name: "DevicesRecordModal",
  components: {
    DevicesRecordList
  },
  data () {
    return {
      title:'',
      queryParam:{},
      width:"90%",
      visible: false,
      disableSubmit: false
    }
  },
  methods: {
    show(devSn){
      this.queryParam={
        "devSn":devSn
      };
      this.visible=true;
    },
    handleOk(){
      this.close();
    },
    handleCancel(){
      this.close();
    },
    close () {
      //this.$emit('close');
      this.visible = false;
    },
  }
}
</script>

<style scoped>

</style>